﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace mana.lib.rates.service
{
    public class RatesInitializer
    {
        static Rates _rt = null;
        public static Rates GetInitializedRates()
        {
            if (_rt == null)
            {
                _rt = new Rates();
                _rt.AddRate(MkDt(1, 2), 499);
                _rt.AddRate(MkDt(2, 13), 269);
                _rt.AddRate(MkDt(3, 30), 319);
                _rt.AddRate(MkDt(4, 19), 199);
                _rt.AddRate(MkDt(10, 08), 159);
                _rt.AddRate(MkDt(11, 8), 125);
                _rt.AddRate(MkDt(12, 20), 199);
            }
            return _rt;
        }

        private static DateTime MkDt(int month, int day)
        {
            return new DateTime(DateTime.Now.Year, month, day);
        }

    }
}
